import { usePosition } from './Hook'

export default function Cat () {
  const { position } = usePosition()

  return (
    <div>
      <img
        src='https://img0.baidu.com/it/u=3974180714,2970977250&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=533'
        alt=''
        style={{
          position: 'absolute',
          left: position.x,
          top: position.y,
          width: 100,
          height: 100
        }}
      />
    </div>
  )
}
